package it.allerj.gui.action;

import it.allerj.bean.AllergicTestFilter;
import it.allerj.bean.PatientFilter;
import it.allerj.common.persistence.PersistenceObject;
import it.allerj.model.AllergicTest;
import it.allerj.model.Patient;
import java.util.List;

public interface GuiActionInterface {

    public void deletePersistendeObject(PersistenceObject pObj);
    public void savePersistenceObject(PersistenceObject pObj);
    public List<Patient> searchPatient(PatientFilter patientFilter);
    public List<AllergicTest> searchAllergicTest(AllergicTestFilter allergicTestFilter);
    
    public <T> T getPersistenceObject(Class <T> clazz, int id);
    public <T> T getPersistenceObjectByStringAttribute(Class <T> clazz, String nameProperty, String value);
    public <T> List<T> getPersistenceObjectList(Class <T> clazz);
}
